<?php 
include  "/../protegido/protected.php"; /*Valida el inico de sesion*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Busqueda Libro</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">

	<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
	<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
	<!--script src="js/less-1.3.3.min.js"></script-->
	<!--append ‘#!watch’ to the browser URL, then refresh the page. -->
	
	<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link href="../bootstrap/css/style.css" rel="stylesheet">
	

  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
  <![endif]-->

  <!-- Fav and touch icons -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../bootstrap/img/apple-touch-icon-144-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../bootstrap/img/apple-touch-icon-114-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../bootstrap/img/apple-touch-icon-72-precomposed.png">
  <link rel="apple-touch-icon-precomposed" href="../bootstrap/img/apple-touch-icon-57-precomposed.png">
  <link rel="shortcut icon" href="../bootstrap/img/Limasys2.1.png">
  
	<script type="text/javascript" src="../bootstrap/js/jquery.min.js"></script>
	<script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../bootstrap/js/scripts.js"></script>
	
	<!--importaciones para la tabla-->
        <script src="../tabla/media/js/jquery.js"></script>
        <script src="../tabla/media/js/jquery.dataTables.js"></script>
        <link rel="stylesheet" type="text/css" href="../tabla/media/css/demo_table.css">
        <link rel="stylesheet" type="text/css" href="../tabla/media/css/jquery.dataTables_themeroller.css">
        
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
                $('#datatables').dataTable();
            })
        </script>
        <!--fin de las importaciones para la tablas-->

</head>

<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column ">
			<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"><!-- navbar-default acomoda el menu  //navbar-inverse navbar-fixed-top//-->
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#">
					 	 <a class="navbar-brand" href="index.html">
                         <img src="../bootstrap/img/logo.png" alt="" />
                        </a>

					 </a>
				</div>
				
				<div class="collapse navbar-collapse " id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav ">
						<li >
							<a href="../menuUser/index.html" ><strong class="glyphicon glyphicon-list "></strong> Inicio</a>
						</li>
						
						<li class="active">
							<a href="../busquedalibro/index.php" class="btn btn-primary"> <strong class="glyphicon glyphicon-book"></strong> Busqueda Libro</a>
						</li>
						<li>
							<a href="../busquedabiblioteca/index.php"> <strong class="glyphicon glyphicon-tags"></strong> Busqueda de documentos</a>
						</li>

						<li>
							<a href="#"><strong class="glyphicon glyphicon-question-sign"></strong> Ayuda</a>
						</li>
					</ul>
					<!--<form class="navbar-form navbar-left" role="search">
						<div class="form-group">
							<input type="text" class="form-control">
						</div> <button type="submit" class="btn btn-default">Submit</button>
					</form>-->
					<ul class="nav navbar-nav navbar-right">
						<li>
							<a href="#"></a>
						</li>
						<li class="dropdown">
							 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong class="glyphicon glyphicon-user"></strong></a>
							<ul class="dropdown-menu dropdown-user">
							
								<li>
									<a href="../Protegido/logoutAdmin.php">Salir</a>
								</li>
							</ul>
						</li>
					</ul>
				</div>
				
			</nav>
                </div>
                </div>
                </div>



<!--la tabla para mostrar los usuarios-->

    <div>
        <div>
            <div class="table-responsive">
            <div class="container">           
            <br></br>
			<br></br>
		    <h2 align="center">Busqueda de Libros</h2> 
        <p>&nbsp;</p>
                <p>&nbsp;</p>
                    
                    <table id="datatables" class="table table-striped">
                      <thead>
                            <?php
                            include('../Tabla/conn/conn.php');  
                            echo "<tr>"; 
                            echo "<th>Codigo Libro</th>"; 
                           
                            echo "<th>Nombre</th>"; 
                            echo "<th>Autor</th>";
                           
                            echo "<th>Edicion</th>"; 
                            echo "<th>Genero</th>"; 
                            echo "<th>Estado</th>"; 
                            echo "<th>Disponibilidad</th>"; 
                            echo "<th>Estado Fisico</th>";
                             echo "<th>Description</th>";                
                            echo "</tr>"; 
                            ?>
                      </thead>
                      
                          <tbody>
                                <?php
                                $result = mysql_query("SELECT LS00IDLB, LS03NBLB, LS04AT, LS05ED,LS07GN, LS09ET, LS11DB, LS12EF,LS13DP FROM ls_06_registro_libro") or trigger_error(mysql_error());
                                while($row = mysql_fetch_array($result))
                                {
                                    echo "</tr>";
                                    echo "<td valign='top'>". nl2br( $row['LS00IDLB']) .  "</td>";
                                 
                                    echo "<td valign='top'>" . nl2br( $row['LS03NBLB']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS04AT']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS05ED']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS07GN']) . "</td>";
                                    echo "<td valign='top'>" . nl2br( $row['LS09ET']) . "</td>";  
                                    echo "<td valign='top'>" . nl2br( $row['LS11DB']) . "</td>"; 
                                    echo "<td valign='top'>" . nl2br( $row['LS12EF']) . "</td>"; 
                                    echo "<td valign='top'>" . nl2br( $row['LS13DP']) . "</td>"; 
                                     
                                }
                                
                                mysql_close($link);
                                ?>
                          </tbody>
                    </table>
                        <p>&nbsp;</p>
                    </div>  
                    <p>&nbsp;</p>
                    </div>
            </div>

        </div>
           <!--fin de la tabla para mostrar los usuarios-->	
 </div>
</div>
</div>
</div>
<div class="footer_btm"><!-- start footer_btm -->
  <div class="container">
    <div class="navbar navbar-default">

      
               
                <a class="navbar-brand" >
                    <img class="img-rounded" align="left" src="../bootstrap/img/barrainferios/limasys.png" alt="" />
                </a>
                <a class="navbar-brand" align="left">
                    <img <img class="img-rounded" align="left" src="../bootstrap/img/barrainferios/ctp.png" alt="" />
                </a>

               <a class="navbar-brand" align="left">
                    <img <img class="img-rounded" align="left" src="../bootstrap/img/barrainferios/una.png" alt="" />
                </a>

        <p class=""><span>&#169; Reservado todo los Derechos|2014| Diseñado por&nbsp;<a href="http://LYMASYS/"> Javier Villarreal y Josue Morales</a></span></p>
    </div>
  </div>
</div>
</body>
</html>
